list=[1,2,3,4]
for x in list:
    for y in list:
        for z in list:
            if (x!=y) and (y!=z) and (z!=x):
                print(x*100+y*10+z)